]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
swipeTracker: Drop grab-op-begin signal connection
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 31 Oct 2022 12:15:32 +0000 (13:15 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 30 Jan 2023 12:19:22 +0000 (12:19 +0000)
This is done just to "reset" the gesture when a grab operation
begins. With grab ops being based on ClutterGrab now, the gesture
will be implicitly reset when these happen. This is unnecessary now.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2526>

js/ui/swipeTracker.js

index 869f977c554111aaa524e64918d23aad8943c3fa..92990142b5d0cab12f3bf2bedc25e42462b0c154 100644 (file)
@@ -232,11 +232,6 @@ const TouchSwipeGesture = GObject.registerClass({
 
         this._allowedModes = allowedModes;
         this._distance = global.screen_height;
-
-        global.display.connect('grab-op-begin', () => {
-            this.cancel();
-        });
-
         this._lastPosition = 0;
     }